package com.corechina.apex_osswords.domain.dao;

import com.corechina.apex_osswords.domain.entity.CoreFiles;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 文件表 Mapper 接口
 * </p>
 *
 * @author cc
 * @since 2022-03-11
 */
@Component
public interface CoreFilesMapper extends BaseMapper<CoreFiles> {

    @Update("update core_files set is_del = #{isDel} where id = #{id}")
    int updateIsDel(@Param("isDel") Integer isDel ,@Param("id") Integer id);
}
